/**
 * 
 */
package com.jsync.model;

/**
 * @author prabz
 *
 */
public class ResourceProfile {
	
	private String source, destination;
	private ResourceType sourceType, destType;
	private String filters;
	private String sourceUser, destinationUser;
	private String sourcePass, destinationPass;
	private String host;
	private Integer port;
	
	/**
	 * @return the source
	 */
	public String getSource() {
		return source;
	}
	/**
	 * @param source the source to set
	 */
	public void setSource(String source) {
		this.source = source;
	}
	/**
	 * @return the destination
	 */
	public String getDestination() {
		return destination;
	}
	/**
	 * @param destination the destination to set
	 */
	public void setDestination(String destination) {
		this.destination = destination;
	}
	/**
	 * @return the sourceType
	 */
	public ResourceType getSourceType() {
		return sourceType;
	}
	/**
	 * @param sourceType the sourceType to set
	 */
	public void setSourceType(ResourceType sourceType) {
		this.sourceType = sourceType;
	}
	/**
	 * @return the destType
	 */
	public ResourceType getDestType() {
		return destType;
	}
	/**
	 * @param destType the destType to set
	 */
	public void setDestType(ResourceType destType) {
		this.destType = destType;
	}
	/**
	 * @return the filters
	 */
	public String getFilters() {
		return filters;
	}
	/**
	 * @param filters the filters to set
	 */
	public void setFilters(String filters) {
		this.filters = filters;
	}
	/**
	 * @return the sourceUser
	 */
	public String getSourceUser() {
		return sourceUser;
	}
	/**
	 * @param sourceUser the sourceUser to set
	 */
	public void setSourceUser(String sourceUser) {
		this.sourceUser = sourceUser;
	}
	/**
	 * @return the destinationUser
	 */
	public String getDestinationUser() {
		return destinationUser;
	}
	/**
	 * @param destinationUser the destinationUser to set
	 */
	public void setDestinationUser(String destinationUser) {
		this.destinationUser = destinationUser;
	}
	/**
	 * @return the sourcePass
	 */
	public String getSourcePass() {
		return sourcePass;
	}
	/**
	 * @param sourcePass the sourcePass to set
	 */
	public void setSourcePass(String sourcePass) {
		this.sourcePass = sourcePass;
	}
	/**
	 * @return the destinationPass
	 */
	public String getDestinationPass() {
		return destinationPass;
	}
	/**
	 * @param destinationPass the destinationPass to set
	 */
	public void setDestinationPass(String destinationPass) {
		this.destinationPass = destinationPass;
	}
	/**
	 * @return the host
	 */
	public String getHost() {
		return host;
	}
	/**
	 * @param host the host to set
	 */
	public void setHost(String host) {
		this.host = host;
	}
	/**
	 * @return the port
	 */
	public Integer getPort() {
		return port;
	}
	/**
	 * @param port the port to set
	 */
	public void setPort(Integer port) {
		this.port = port;
	}
	
	public String getRegexFilter(){
		return filters.replace(".", "\\.").replace("*", ".*").replace(";","|");
	}
}
